package Run;

import java.awt.*;

import GUI_Element.*;
import javax.swing.*;

public class GUIElemTest {
	public static void main(String[] args) throws InterruptedException {
		new TestFrame();
	}

}

class TestFrame extends JFrame{

	private static final long serialVersionUID = -2423256276020454597L;
	ShapeTransition trans;
	ShapeArc arcp2t, arct2p;
	ShapePlace place;
	
	public TestFrame() throws InterruptedException {
		this.setBounds(200, 50, 540, 720);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.setVisible(true);
		
		trans = new ShapeTransition((float)100, (float)100);
		place = new ShapePlace((float)400, (float)200);
		arcp2t =new ShapeArc(ShapeArc.TYPEP2T, place, trans);
		arct2p = new ShapeArc(ShapeArc.TYPET2P, place, trans);
		Thread.currentThread();
		Thread.sleep(1000);
		trans.SetPosition(500, 300);
	}
	
	public void paint(Graphics g) {
		super.paint(g);
		Graphics2D g2d = (Graphics2D)g;

		trans.draw(g2d);
		place.draw(g2d);
		arcp2t.draw(g2d);
		arct2p.draw(g2d);
	}
}